首页> 外文OA文献 >Type Checking and Modules for Multi-Methods
【2h】

Type Checking and Modules for Multi-Methods

机译:多种方法的类型检查和模块

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Two major obstacles hindering the wider acceptance of multi-methods are concerns over the lack of encapsulation and modularity and the absence of static typechecking in existing multi-method-based languages. This paper addresses both of these problems. We present a polynomial-time static typechecking algorithm that checks the conformance, completeness, and consistency of a group of method implementations with respect to declared message signatures. This algorithm improves on previous algorithms by handling separate type and inheritance hierarchies, abstract classes, and graph-based method lookup semantics. We also present a module system that enables independently-developed code to be fully encapsulated and statically typechecked on a per- module basis. To guarantee that potential conflicts between independently-developed modules have been resolved, a simple well-formedness condition on the modules comprising a program is checked at link-time. The typechecking algorithm and module system are applicable to a range of multi-method-based languages, but the paper uses the Cecil language as a concrete example of how they can be applied.
机译:阻碍广泛接受多方法的两个主要障碍是对现有的基于多方法的语言中缺少封装和模块化以及缺少静态类型检查的担忧。本文解决了这两个问题。我们提出了一种多项式时间静态类型检查算法,该算法检查一组方法实现相对于已声明的消息签名的一致性,完整性和一致性。该算法通过处理单独的类型和继承层次结构,抽象类以及基于图的方法查找语义,对以前的算法进行了改进。我们还介绍了一个模块系统,该模块系统使独立开发的代码可以完全封装并在每个模块的基础上进行静态类型检查。为了确保已解决独立开发模块之间的潜在冲突,在链接时检查组成程序的模块上的简单格式良好条件。类型检查算法和模块系统适用于多种基于多方法的语言,但是本文使用Cecil语言作为如何应用它们的具体示例。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号